package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 单品跟进表单对象
 *
 * @author xiheforever
 * @since 2025-05-16 23:05
 */
@Getter
@Setter
@Schema(description = "单品跟进表单对象")
public class ProductsingleForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    @Schema(description = "时间")
    @NotNull(message = "时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    @Schema(description = "商品名称")
    @NotBlank(message = "商品名称不能为空")
    @Size(max=255, message="商品名称长度不能超过255个字符")
    private String productName;

    @Schema(description = "SKU")
    @NotBlank(message = "SKU不能为空")
    @Size(max=50, message="SKU长度不能超过50个字符")
    private String sku;

    @Schema(description = "品牌")
    @NotBlank(message = "品牌不能为空")
    @Size(max=50, message="品牌长度不能超过50个字符")
    private String brand;

    @Schema(description = "一级类别")
    @NotBlank(message = "一级类别不能为空")
    @Size(max=50, message="一级类别长度不能超过50个字符")
    private String categoryLevel1;

    @Schema(description = "二级类别")
    @NotBlank(message = "二级类别不能为空")
    @Size(max=50, message="二级类别长度不能超过50个字符")
    private String categoryLevel2;

    @Schema(description = "三级类别")
    @NotBlank(message = "三级类别不能为空")
    @Size(max=50, message="三级类别长度不能超过50个字符")
    private String categoryLevel3;

    @Schema(description = "店铺简称")
    @NotBlank(message = "店铺简称不能为空")
    @Size(max=255, message="店铺简称长度不能超过255个字符")
    private String shopShortName;

    @Schema(description = "经营模式")
    @NotBlank(message = "经营模式不能为空")
    @Size(max=50, message="经营模式长度不能超过50个字符")
    private String operationMode;

    @Schema(description = "浏览量")
    @NotNull(message = "浏览量不能为空")
    private Integer pageViews;

    @Schema(description = "访客数")
    @NotNull(message = "访客数不能为空")
    private Integer visitorCount;

    @Schema(description = "人均浏览量")
    @NotNull(message = "人均浏览量不能为空")
    private BigDecimal avgPageViewsPerVisitor;

    @Schema(description = "平均停留时长")
    @NotNull(message = "平均停留时长不能为空")
    private BigDecimal avgStayTime;

    @Schema(description = "成交人数")
    @NotNull(message = "成交人数不能为空")
    private Integer transactionUserCount;

    @Schema(description = "成交转化率")
    @NotNull(message = "成交转化率不能为空")
    private BigDecimal conversionRate;

    @Schema(description = "成交金额")
    @NotNull(message = "成交金额不能为空")
    private BigDecimal transactionAmount;

    @Schema(description = "创建时间")
    @NotNull(message = "创建时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @NotNull(message = "更新时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "删除标记(0:正常 1:删除)")
    @NotNull(message = "删除标记(0:正常 1:删除)不能为空")
    private Integer isDeleted;


}
